﻿using Prism.Mvvm;

namespace IntoStationSystem.Models
{
    public class ScanModel : BindableBase
    {
        private int index;
        private bool enable;
        private string matchCode;
        private string partName;
        private int codeLen;
        private bool isScan = false;
        public int Index
        {
            get => index; set => SetProperty(ref index, value);
        }
        public bool Enable
        {
            get => enable; set => SetProperty(ref enable, value);
        }
        public string MatchCode
        {
            get => matchCode; set => SetProperty(ref matchCode, value);
        }
        public int CodeLen
        {
            get => codeLen; set => SetProperty(ref codeLen, value);
        }
        /// <summary>
        /// 零件名称
        /// </summary>
        public string PartName
        {
            get => partName;
            set => SetProperty(ref partName, value);
        }
        /// <summary>
        /// 条码是否已经扫描，当前产品完成后重置为false
        /// </summary>
        public bool IsScan
        {
            get => isScan; set => SetProperty(ref isScan, value);
        }
    }
}

